package com.zjy.financialsystemjavafx.model.entity;

import java.time.LocalDate;

/**
 * 借贷实体类
 */
public class Loan {
    private int loanId;
    private String loanType;
    private double amount;
    private double interestRate;
    private LocalDate startDate;
    private LocalDate dueDate;
    private String contactPerson;
    private String contactInfo;
    private String status;
    private String description;

    public Loan() {}

    public Loan(int loanId, String loanType, double amount, double interestRate,
                LocalDate startDate, LocalDate dueDate,
                String contactPerson, String contactInfo,
                String status, String description) {
        this.loanId = loanId;
        this.loanType = loanType;
        this.amount = amount;
        this.interestRate = interestRate;
        this.startDate = startDate;
        this.dueDate = dueDate;
        this.contactPerson = contactPerson;
        this.contactInfo = contactInfo;
        this.status = status;
        this.description = description;
    }

    public int getLoanId() {
        return loanId;
    }

    public void setLoanId(int loanId) {
        this.loanId = loanId;
    }

    public String getLoanType() {
        return loanType;
    }

    public void setLoanType(String loanType) {
        this.loanType = loanType;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getInterestRate() {
        return interestRate;
    }

    public void setInterestRate(double interestRate) {
        this.interestRate = interestRate;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getDueDate() {
        return dueDate;
    }

    public void setDueDate(LocalDate dueDate) {
        this.dueDate = dueDate;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactInfo() {
        return contactInfo;
    }

    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
} 